int maxProfit(int* prices, int pricesSize){
	int ans= 0,profit = 0;
    
    for(int i = 1;i < pricesSize ;i++ )
    {
        profit = prices[i] -prices[i-1]; //后一天交易的利润
        if( profit> 0)
        {
            ans += profit;
        }
    }
    return ans;
}